<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<input type="text" placeholder="请输入1-100之间的整数">
<input type="button" value="猜一猜">
<div></div>
<script>
    //获取0-1的随机数
    let x = parseInt(Math.random()*100)+1;
    //把上面改成1-100的随机整数
    function fn() {
        if ($("input").val()>x){

        }
    }


</script>
</body>
</html>